package trail

import "fmt"

type person struct {
	Name string
	Age  int
}

func (p person) printName() {
	fmt.Println(p.Name)
}

func StructuralMain() {
	s := person{
		Name: "张三",
		Age:  18,
	}

	s.Name = "1231"

	s.printName()
}
